/* @import url("https://fonts.googleapis.com/css2?family=Cookie&family=Rouge+Script&display=swap"); */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    background-color: #34E1FF;
}

.page2 {
    display: none;
}

.page1 {
    display: grid;
    place-items: center;
    /* display:flex; */
    /* align-items:center; */
}



.account,.password {
    float: left;
}

.loading_button {
    width: 200px;
}

.load_div {
    margin-top: 10%;
    /* margin-bottom:8%; */
}

.container {
    position: absolute;
    top: 65%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
.presents {
    /* display: -webkit-box; */
    display: flex;
    -webkit-box-pack: center;
            justify-content: center;
    -webkit-box-align: end;
            align-items: flex-end;
    height: 200px;
  }
  
  .green {
    position: relative;
    left: -20px;
    width: 100px;
    height: 100px;
    z-index: 1;
  }
  .green:hover {
    -webkit-animation: 0.5s green;
            animation: 0.5s green;
  }
  .green .lid {
    background: #3DDC81;
  }
  .green .box {
    background-image: radial-gradient(#fff 20%, transparent 20%), radial-gradient(#fff 20%, transparent 20%);
    background-color: #3DDC81;
  }
  .green .ribbon {
    background: #F75D4C;
  }
  .green .ribbon::before {
    top: 21%;
  }
  .green .bow {
    background: #F75D4C;
  }
  .green .bow::before, .green .bow::after {
    background: #F75D4C;
  }
  @-webkit-keyframes green {
    0% {
      width: 100px;
      height: 100px;
    }
    30% {
      width: calc(100px + 10px);
      height: calc(100px - 10px);
    }
    60% {
      width: calc(100px - 10px);
      height: calc(100px + 10px);
    }
    100% {
      width: 100px;
      height: 100px;
    }
  }
  @keyframes green {
    0% {
      width: 100px;
      height: 100px;
    }
    30% {
      width: calc(100px + 10px);
      height: calc(100px - 10px);
    }
    60% {
      width: calc(100px - 10px);
      height: calc(100px + 10px);
    }
    100% {
      width: 100px;
      height: 100px;
    }
  }
  .orange {
    position: relative;
    left: 20px;
    width: 130px;
    height: 120px;
    z-index: 10;
  }
  .orange:hover {
    -webkit-animation: 0.5s orange;
            animation: 0.5s orange;
  }
  .orange .lid {
    background: #FFA726;
  }
  .orange .box {
    background-image: radial-gradient(#2C3A49 20%, transparent 20%), radial-gradient(#2C3A49 20%, transparent 20%);
    background-color: #FFA726;
  }
  .orange .ribbon {
    background: #F75D4C;
  }
  .orange .ribbon::before {
    top: 21%;
  }
  .orange .bow {
    background: #F75D4C;
  }
  .orange .bow::before, .orange .bow::after {
    background: #F75D4C;
  }
  @-webkit-keyframes orange {
    0% {
      width: 130px;
      height: 120px;
    }
    30% {
      width: calc(130px + 10px);
      height: calc(120px - 10px);
    }
    60% {
      width: calc(130px - 10px);
      height: calc(120px + 10px);
    }
    100% {
      width: 130px;
      height: 120px;
    }
  }
  @keyframes orange {
    0% {
      width: 130px;
      height: 120px;
    }
    30% {
      width: calc(130px + 10px);
      height: calc(120px - 10px);
    }
    60% {
      width: calc(130px - 10px);
      height: calc(120px + 10px);
    }
    100% {
      width: 130px;
      height: 120px;
    }
  }
  .blue {
    position: relative;
    left: 0;
    width: 120px;
    height: 160px;
    z-index: 0;
  }
  .blue:hover {
    -webkit-animation: 0.5s blue;
            animation: 0.5s blue;
  }
  .blue .lid {
    background: #1BB5FE;
  }
  .blue .box {
    background-image: radial-gradient(transparent 20%, transparent 20%), radial-gradient(transparent 20%, transparent 20%);
    background-color: #1BB5FE;
  }
  .blue .ribbon {
    background: #3DDC81;
  }
  .blue .ribbon::before {
    top: 21%;
  }
  .blue .bow {
    background: #3DDC81;
  }
  .blue .bow::before, .blue .bow::after {
    background: #3DDC81;
  }
  @-webkit-keyframes blue {
    0% {
      width: 120px;
      height: 160px;
    }
    30% {
      width: calc(120px + 10px);
      height: calc(160px - 10px);
    }
    60% {
      width: calc(120px - 10px);
      height: calc(160px + 10px);
    }
    100% {
      width: 120px;
      height: 160px;
    }
  }
  @keyframes blue {
    0% {
      width: 120px;
      height: 160px;
    }
    30% {
      width: calc(120px + 10px);
      height: calc(160px - 10px);
    }
    60% {
      width: calc(120px - 10px);
      height: calc(160px + 10px);
    }
    100% {
      width: 120px;
      height: 160px;
    }
  }
  .present {
    position: relative;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: center;
            align-items: center;
    cursor: pointer;
  }
  .present .lid {
    height: 20%;
    width: calc(100% + 10px);
    border: 4px solid #2C3A49;
    border-radius: 5px;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5), 5px 0 rgba(0, 0, 0, 0.15);
  }
  .present .box {
    width: 100%;
    height: 100%;
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
    border: 4px solid #2C3A49;
    border-top: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: inset -10px 5px rgba(0, 0, 0, 0.3), 5px 0 rgba(0, 0, 0, 0.15);
  }
  .present .ribbon {
    position: absolute;
    top: -3px;
    width: 30px;
    height: calc(100% - 5px);
    border: 4px solid #2C3A49;
    border-radius: 5px;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5);
  }
  .present .ribbon::before {
    display: block;
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
  }
  .present .bow {
    position: absolute;
    top: -20px;
    width: 20px;
    height: 20px;
    border: 4px solid #2C3A49;
    border-radius: 50%;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5), inset -2px -5px rgba(0, 0, 0, 0.3);
  }
  .present .bow::before, .present .bow::after {
    display: block;
    content: '';
    position: absolute;
    top: -10px;
    width: 30px;
    height: 30px;
    border: 4px solid #2C3A49;
    border-radius: 50%;
    box-shadow: inset 2px 2px rgba(255, 255, 255, 0.5), inset -2px -5px rgba(0, 0, 0, 0.3);
    z-index: -1;
  }
  .present .bow::before {
    left: 15px;
  }
  .present .bow::after {
    right: 15px;
  }
  

.glow, .flames{
    display: none;
    width: 50px;
    height: 50px;
}
.confettis {
    display: none;
}


.svg {
  position: absolute;
  width: 0;
  height: 0;
}

.wrapper, .plate, .candle-container, .sayHello {
  display: grid;
  place-items: center;
}

.wrapper {
  position: relative;
  /* height: 100vh; */
  margin-top: 0;
  height: 100vh;
  min-height: 500px;
  background: linear-gradient(to top, rgb(251, 144, 255), transparent);
}

.greeting {
font-family: 'Fredoka One', cursive;
font-weight: bold;
  font-size: 4rem;
  color: rgb(229, 255, 0);
  transform: scale(0);
  --hue: 0;
  -webkit-text-fill-color: transparent; 
  -webkit-text-stroke-width: 4px;
  -webkit-text-stroke-color: hsl(var(--hue), 50%, 95%);
  text-shadow:
    0 0 15px hsl(var(--hue), 60%, 90%, .80),
    0 0 20px hsl(var(--hue), 70%, 80%, .85),
    0 0 40px hsl(var(--hue), 80%, 70%, .90),
    0 0 60px hsl(var(--hue), 90%, 60%, .95),
    0 0 80px hsl(var(--hue), 100%, 50%, 1)
}
.greetingToName {
    font-family: 'Fredoka One', cursive;
    font-weight: bold;
    font-size: 3rem;
    color: rgb(229, 255, 0);
    margin-top: 50px;
    transform: scale(0);
    --hue: 0;
    -webkit-text-fill-color: transparent; 
    -webkit-text-stroke-width: 4px;
    -webkit-text-stroke-color: hsl(var(--hue), 50%, 95%);
    text-shadow:
      0 0 15px hsl(var(--hue), 60%, 90%, .80),
      0 0 20px hsl(var(--hue), 70%, 80%, .85),
      0 0 40px hsl(var(--hue), 80%, 70%, .90),
      0 0 60px hsl(var(--hue), 90%, 60%, .95),
      0 0 80px hsl(var(--hue), 100%, 50%, 1)
  }

.message {
  font-family: 'Cookie', cursive;
  font-size: 2.5rem;
  color: #777;
}

.plate {
  position: relative;
  width: 250px;
  height: 75px;
  background: #f1f1f1;
  margin-top: 0;
  border-radius: 50%;
  box-shadow: 0px 3px 5px 0px #aaa;
}

.cake-wrap {
  position: absolute;
  bottom: 50%;
}

.cake-base {
  position: relative;
  width: 200px;
  height: 50px;
  background: #c5a5c0;
}
.cake-base .base-front {
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
}
.cake-base .base-front:after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 55px;
  transform: translatey(-50%);
  background: inherit;
  border-radius: 50%;
}
.cake-base .base-top {
  position: absolute;
  width: 100%;
  height: 65px;
  top: 0;
  transform: translatey(-50%);
  border-radius: 50%;
  background: inherit;
}
.cake-base .base-top:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(0 0, 0% 50%, 100% 50%, 100% 0);
}
.cake-base .base-top:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border-bottom-color: black;
  clip-path: polygon(0 50%, 60% 50%, 60% 101%, 0 101%);
}

.cake-topping {
  position: absolute;
  bottom: 0%;
  width: 200px;
  height: 100px;
  z-index: 99;
}
.cake-topping .topping-front {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #b381ae 40%, transparent);
}
.cake-topping .topping-front .top-layer {
  height: 30%;
  background: #b381ae;
}
.cake-topping .topping-front .bottom-layer {
  position: relative;
  height: 70%;
  background: #b381ae;
  clip-path: url("#my-clip-path");
}
.cake-topping .topping-top {
  background: #b381ae;
  position: absolute;
  width: 100%;
  height: 65px;
  top: 0;
  transform: translatey(-50%);
  border-radius: 50%;
  z-index: 9;
}
.cake-topping .topping-top:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(0 0, 0% 50%, 100% 50%, 100% 0);
}
.cake-topping .topping-top:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 -1px 1px 2px rgba(200, 169, 195, 0.5);
  clip-path: polygon(10% 50%, 70% 50%, 70% 101%, 10% 101%);
}



.candle-container {
  width: 200px;
  position: absolute;
  bottom: 60%;
  z-index: 9999;
  opacity: 0;
}
.candle-container .candle-wrap {
  position: relative;
  width: 15px;
}
.candle-container .flame-wrap {
  position: relative;
  z-index: 99;
  width: 100%;
  background: #fcc56c;
  height: 30px;
  transform-origin: bottom center;
  transform: scale(0);
  clip-path: url(#my-flame-path);
}
.candle-container .candle-top {
  position: absolute;
  top: 0;
  left: 0;
  transform: translatey(-50%);
  width: 100%;
  height: 8px;
  background: white;
  border-radius: 50%;
  z-index: 9;
  background: radial-gradient(#eee, #f0abf0);
}
.candle-container .candle-base {
  position: relative;
  width: 100%;
  height: 75px;
  margin: 2px 0;
  background: repeating-linear-gradient(45deg, #eee, #f0abf0 20%);
}
.candle-container .candle-base:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  background: #eee;
  transform: translateY(50%);
  height: 5px;
  width: 100%;
  z-index: -1;
  border-radius: 50%;
}
.candle-container .candle-base:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  height: 10px;
  width: 200%;
  border-radius: 50%;
  background: radial-gradient(#9e7199, #b381ae);
  z-index: -2;
}
.candle-container .star {
  width: 15px;
  height: 15px;
  position: absolute;
  background-color: orange;
  clip-path: url(#my-star-path);
  opacity: 0;
}
.candle-container .star:nth-of-type(1) {
  top: -20%;
  left: 30%;
}
.candle-container .star:nth-of-type(2) {
  top: 30%;
  left: 10%;
}
.candle-container .star:nth-of-type(3) {
  top: -10%;
  left: 85%;
}
.candle-container .star:nth-of-type(4) {
  top: 35%;
  left: 65%;
}
.candle-container .star:nth-of-type(5) {
  top: 55%;
  left: 90%;
}

.light_candle{
    width: 18px;
    height: 18px;
}

.flame-wrap,.star{
    display: none;
}

.flames {
    position: absolute;
    width: 1.2em;
}

.flames::before {
    content: '';
    position: absolute;
    width: inherit;
    height: 2em;
    background-color: royalblue;
    top: -2em;
    border-radius: 50% 50% 35% 35%;
    border: 0.2em solid dodgerblue;
    box-sizing: border-box;
    filter: opacity(0.7);
}

.flames::after {
    content: '';
    position: absolute;
    width: inherit;
    height: 12em;
    top: -12em;
    background: linear-gradient(white 80%, transparent);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 -0.6em 0.4em darkorange;
    animation: 
        enlarge 5s linear infinite,
        move 6s linear infinite;
}

@keyframes move {
    0%, 100% {
        transform: rotate(2deg);
    }

    50% {
        transform: rotate(-2deg);
    }
}

@keyframes enlarge {
    0%, 100% {
        height: 4em;
        top: -4em;
    }

    50% {
        height: 5em;
        top: -5em;
    }
}

.glow {
    position: absolute;
    width: 5em;
    height: 9em;
    background-color: orangered;
    border-radius: 50%;
    top: -1em;
    filter: blur(6em);
    animation: blink 100ms infinite;
}

@keyframes blink {
    to {
        filter: blur(6em) opacity(0.8);
    }
}


@keyframes fire {
    /* 0% {background-color: orangered;} */
    to {background-color:transparent;}
}



/*礼花特效*/
main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  h1 {
    font-size: 54px;
    text-shadow: 0px 0px 10px #e7e300;
  }
  
  #confettis {
    overflow: hidden;
    position: absolute;
    height: 100%;
    width: 100%;
  }
  
  .confetti {
    left: 50%;
    width: 16px;
    height: 16px;
    position: absolute;
    transform-origin: left top;
    animation: confetti 5s ease-in-out -2s infinite;
  }
  
  .confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0;
    background-color: #fc0120;
  }
  
  .confetti:nth-child(2) {
    left: 20%;
    animation-delay: -5s;
    background-color: #8257e6;
  }
  
  .confetti:nth-child(3) {
    left: 30%;
    animation-delay: -3s;
    background-color: #ffbf4d;
  }
  
  .confetti:nth-child(4) {
    left: 40%;
    animation-delay: -2.5s;
    background-color: #fe5d7a;
  }
  
  .confetti:nth-child(5) {
    left: 50%;
    animation-delay: -4s;
    background-color: #45ec9c;
  }
  
  .confetti:nth-child(6) {
    left: 60%;
    animation-delay: -6s;
    background-color: #f6e327;
  }
  
  .confetti:nth-child(7) {
    left: 70%;
    animation-delay: -1.5s;
    background-color: #f769ce;
  }
  
  .confetti:nth-child(8) {
    left: 80%;
    animation-delay: -2s;
    background-color: #007de7;
  }
  
  .confetti:nth-child(9) {
    left: 90%;
    animation-delay: -3.5s;
    background-color: #63b4fc;
  }
  
  .confetti:nth-child(10) {
    left: 100%;
    animation-delay: -2.5s;
    background-color: #f9c4ea;
  }
  
  @keyframes confetti {
    0% {
      transform: rotateZ(15deg) rotateY(0deg) translate(0, 0);
    }
    25% {
      transform: rotateZ(5deg) rotateY(360deg) translate(-5vw, 20vh);
    }
    50% {
      transform: rotateZ(15deg) rotateY(720deg) translate(5vw, 60vh);
    }
    75% {
      transform: rotateZ(5deg) rotateY(1080deg) translate(-10vw, 80vh);
    }
    100% {
      transform: rotateZ(15deg) rotateY(1440deg) translate(10vw, 110vh);
    }
  }
  
  @media (max-width: 500px) {
    h1 {
      font-size: 30px;
    }
  }


  /*input框的美化效果*/
  
  input{

    font-size:12px;
     /* 设置输入框中字体的大小 */

    height:30px; 
    /* 设置输入框的高度 */

    border-radius:4px; 
    /* 设置输入框的圆角的大小 */

    border:1px solid #c8cccf;
    /* 设置输入框边框的粗细和颜色 */

    color:#986655; 
    /* 设置输入框中文字的颜色 */

    outline:0; 
    /* 将输入框点击的时候出现的边框去掉 */

    text-align:left; 
    /* 设置输入框中文字的位置 */

    padding-left: 10px;

    display:block; 
    /* 将输入框设置为块级元素 */

    cursor: pointer;

     box-shadow: 2px 2px 5px 1px #ccc;  

    }

 input::-webkit-input-placeholder{
     color: #986655;
     font-size: 12px;
 }


/*按钮美化*/

.btn {
    /* 文字颜色 */
    color: #0099CC; 
    /* 清除背景色 */
    background: transparent; 
    /* 边框样式、颜色、宽度 */
    border: 2px solid #0099CC;
    /* 给边框添加圆角 */
    border-radius: 6px; 
    /* 字母转大写 */
    border: none;
    color: white;
    padding: 5px 9px;
    text-align: center;
    display: inline-block;
    font-size: 12px;
    width: 100%;
    margin-top: 20px;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
}
.btn1 {
    background-color: white; 
    color: black; 
    border: 2px solid #008CBA;
}
/* 悬停样式 */
.btn1:hover {
    background-color: #008CBA;
    color: white;
}